<Html>
    <head>
        <title>一个简单的例子</title>
    </head>
    <body>
        <script>
              /*
                        二、一个简单的例子

                                    假设您有一个定义如下所示的应用程序服务：

                                            using System;
                                            using System.Threading.Tasks;
                                            using Volo.Abp.Application.Dtos;
                                            using Volo.Abp.Application.Services;

                                            namespace Acme.BookStore.Authors  
                                            {
                                                public interface IAuthorAppService : IApplicationService
                                                {
                                                    Task<AuthorDto> GetAsync(Guid id);

                                                    Task<PagedResultDto<AuthorDto>> GetListAsync(GetAuthorListDto input);

                                                    Task<AuthorDto> CreateAsync(CreateAuthorDto input);

                                                    Task UpdateAsync(Guid id, UpdateAuthorDto input);

                                                    Task DeleteAsync(Guid id);
                                                }
                                            }   
                                                
                                            
                                    您可以像调用JavaScript函数一样调用任何方法。JavaScript函数具有与C#方法相同的函数name、参数和返回值>

                                    eg:  获取作者列表

                                         acme.bookStore.authors.author.getList({
                                                                            maxResultCount: 10
                                                                        }).then(function(result){
                                                                            console.log(result.items);
                                                                        }); 
                                                                        
                                    eg: 删除坐着

                                        acme.bookStore.authors.author
                                                                .delete('7245a066-5457-4941-8aa7-3004778775f0') //Get id from somewhere!
                                                                        .then(function() {
                                                                            abp.notify.info('Successfully deleted!');
                                                                        });
                                                
                    */
        </script>
    </body>
</Html>